import request from '@/utils/request'
export const list = (data) =>
  request.get('/api/goodsType/page', {
    params: {
      id: '',
      like_code: '',
      like_name: '',
      descs: 'createTime',
      size: data.pagesize,
      current: data.page
    }
  })
export const Hp = () => request.get('/api/codeFactory/next/HPLX')

export const Postlist = (data) =>
  request.post('/api/goodsType', {
    ...data
  })
export const Putlist = (data) =>
  request.put('/api/goodsType', {
    ...data
  })
